package com.wy.service.impl;

import com.wy.controller.dto.PetDrugDTO;
import com.wy.entity.PetDrug;
import com.wy.mapper.PetDrugMapper;
import com.wy.service.IPetDrugService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 宠物药物明细表 服务实现类
 * </p>
 *
 * @author 王昭贵
 * @since 2023-04-27
 */
@Service
public class PetDrugServiceImpl extends ServiceImpl<PetDrugMapper, PetDrug> implements IPetDrugService {

    @Resource
    private PetDrugMapper petDrugMapper;
    @Override
    public List<PetDrugDTO> getMyDrugListByCustomerId(Integer id) {
        return petDrugMapper.getMyDrugListByCustomerId(id);
    }
}
